import java.util.*;
import java.io.*;
/**
 * 1. (class = A16_1)
 
   Write a program using the main method below.  Compile and run it several
   times to demonstrate your ability to make it crash (save your output).
   Then, fix it (with try-catch) and demonstrate that it cannot be crashed
   by entering non-numeric input (save your output).
 
   public static void main(String[] args) {
        // Create a Scanner object
        Scanner kb = new Scanner(System.in);
 
        System.out.print("How many hours did you study? ");
        int hours = kb.nextInt();
 
        if (hours >= 10) {
            System.out.println("Really? I only studied " + (hours-2) + ".");
        } else if (hours >= 5) {
            System.out.println("Yeah, me too - " + hours + " is not enough.");
        } else if (hours > 0) {
            System.out.println("Really? I studied at least " + ((hours+3)*2) + ".");
        } else {
            System.out.println("You're a genius XOR clueless.");
        }
    }
 
 * 
 * @author Amrita Mukherjee
 * @version 10/16/2012
 */
public class A16_1
{
    // instance variables - replace the example below with your own
    private int x;

    /**
     * Constructor for objects of class A16_1
     */
    public A16_1()
    {
        // initialise instance variables
        x = 0;
    }

    /**
     * An example of a method - replace this comment with your own
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */
    public int sampleMethod(int y)
    {
        // put your code here
        return x + y;
    }
}
